package com.xxx.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**用户操作日志**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`user_operate`")
public class UserOperate {
    /**id**/
    @ExcelProperty("id")
    @ColumnWidth(20)
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**用户主键**/
    @ExcelProperty("userId")
    @ColumnWidth(20)
    private Integer userId;
    /**模块**/
    @ExcelProperty("模块")
    @ColumnWidth(20)
    private String module;
    /**内容**/
    @ExcelProperty("内容")
    @ColumnWidth(20)
    private String content;
    /**操作**/
    @ExcelProperty("操作")
    @ColumnWidth(20)
    private String operate;
    /**用户名**/
    @ExcelProperty("用户名")
    @ColumnWidth(20)
    private String userName;
    @ExcelProperty("所属部门")
    @ColumnWidth(20)
    private String affiliation;
    /**操作时间**/
    @ExcelProperty("操作时间")
    @ColumnWidth(20)
    private LocalDateTime updateTime;
    /**明细**/
    @ExcelProperty("明细")
    @ColumnWidth(20)
    private String details;
    /**状态**/
    @ExcelProperty("状态")
    @ColumnWidth(20)
    private Integer status;
    @ExcelProperty("是否删除")
    @ColumnWidth(20)
    @TableField("`delete`")
    @TableLogic // 标记为逻辑删除字段
    private Integer delete;

}
